﻿using OMG.Fill.Potato.Model.Ent;
using ProjectShare;
using System;
using System.Collections.Generic;

namespace OMG.Fill.Potato.Model
{
    /// <summary>
    /// 功能菜单表T_Menu查询条件
    /// </summary>
    public class MenuQuery : SearchBase
    {
        //查询条件，请自行删除不需要条件
        /// <summary>
        /// 所属父级菜单
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
    }
    public class MenuModel {
        /// <summary>
        /// 菜单编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 所属父级菜单
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 父级菜单中文
        /// </summary>
        public string ParentName { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string MenuUrl { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string MenuIcon { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 状态中文
        /// </summary>
        public string StatusName { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public string Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 显示状态
        /// </summary>
        public string ShowType { get; set; }
        public string ShowTypeName { get; set; }
    }

    public class SortMenuModel
    {
        public string MenuName { get; set; }
        public string Id { get; set; }
    }
    public class MenuTree
    {
        public string ParentId { get; set; }
        public string Id { get; set; }
        public string title { get; set; }
        public bool selected { get; set; }
        public bool @checked { get; set; }
        //public string stricon { get; set; }
        //public string strurl { get; set; }
        /// <summary>
        /// 是否展开直子节点
        /// </summary>
        public bool expand { get; set; }
        public string icon { get; set; }
        public string url { get; set; }
        public List<MenuTree> children { get; set; }
    }
}
